/**
 * Project Name:dsrs-systemservice-service
 * File Name:DatadicTypeService.java
 * Package Name:com.bwda.dsrs.systemservice.service;
 * Date:2019年4月28日
 * Copyright (c) 2019, 江苏保旺达软件有限公司 All Rights Reserved.
 */
package com.bwda.dsrs.systemservice.service;


import com.bwda.dsrs.systemservice.domain.exception.SystemServiceException;
import com.bwda.dsrs.systemservice.domain.po.datadictype.DatadicTypePo;
import com.bwda.dsrs.systemservice.domain.condition.datadictype.DatadicTypeCondition;

import java.util.List;

/**
 * 数据字典类型
 *
 * @author liangjianyong
 * @date 2019/4/8
 */
public interface DatadicTypeService extends BaseService<DatadicTypePo, DatadicTypeCondition> {

    /**
     * 批量删除
     * @param idList
     */
    void batchDelete(List<Integer> idList);


    /**
     * 查询当前排序的最大值
     * @return
     */
    Integer selectMaxOrderNum();

    /**
     * 查询重复的编码和名称
     * @param condition
     * @return
     */
    int countByCodeorName(DatadicTypeCondition condition);
}